#pragma once
#include <QQuickItem>

class TextureTransformItem : public QQuickItem
{
    Q_OBJECT
    Q_PROPERTY(int angle READ angle WRITE setAngle NOTIFY angleChanged)
    using Super = QQuickItem;
public:
    TextureTransformItem(QQuickItem *parent = nullptr);
    virtual ~TextureTransformItem();

    int angle() const;
    void setAngle(int newAngle);

signals:
    void angleChanged();

protected:
    virtual QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override;
private:
    int mAngle = 0;
    bool mAngleChanged = false;
};
